package com.bao123.gateway.constant;

import java.util.ArrayList;
import java.util.List;

/**
 * 不需要过滤的请求
 * @author lbw
 */
public class NotNeedFilterConstant {

    private static List<String> NOT_NEED_FILTER_PATHS;

    static {
        NOT_NEED_FILTER_PATHS = new ArrayList<>();
        NOT_NEED_FILTER_PATHS.add("/userinfo/index.html");
        NOT_NEED_FILTER_PATHS.add("/userinfo/css/indexStyle.css");
        NOT_NEED_FILTER_PATHS.add("/userinfo/img/indexBackground.jpg");
        NOT_NEED_FILTER_PATHS.add("/userinfo/js/indexScript.js");
        NOT_NEED_FILTER_PATHS.add("/userinfo/js/jquery.min.js");
        NOT_NEED_FILTER_PATHS.add("/userinfo/userinfoController/register");
        NOT_NEED_FILTER_PATHS.add("/userinfo/userinfoController/login");
    }

    public static boolean checkPathIsNotFilter(String path){
        return NOT_NEED_FILTER_PATHS.contains(path);
    }
}
